package org.dromara.business.domain.vo;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.dromara.business.domain.ContentReview;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 统一内容审核记录视图对象 t_content_review
 *
 * @author Hao Tong Xue
 * @date 2025-04-21
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = ContentReview.class)
public class ContentReviewVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 审核记录ID
     */
    @ExcelProperty(value = "审核记录ID")
    private Long id;

    /**
     * 内容ID
     */
    @ExcelProperty(value = "内容ID")
    private Long contentId;

    /**
     * 内容类型：1-视频，2-音频，3-文章
     */
    @ExcelProperty(value = "内容类型：1-视频，2-音频，3-文章", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "content_type")
    private Integer contentType;

    /**
     * 审核人员ID
     */
    @ExcelProperty(value = "审核人员ID")
    private Long reviewerId;

    /**
     * 审核状态：0-待审核，1-通过，2-驳回，3-需修改
     */
    @ExcelProperty(value = "审核状态：0-待审核，1-通过，2-驳回，3-需修改", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "audit_status")
    private Integer reviewStatus;

    /**
     * 审核意见
     */
    @ExcelProperty(value = "审核意见")
    private String reviewComment;

    /**
     * 审核时间
     */
    @ExcelProperty(value = "审核时间")
    private Date reviewTime;

    /**
     * 审核轮次
     */
    @ExcelProperty(value = "审核轮次")
    private Integer reviewRound;

    /**
     * 需要修改的内容
     */
    @ExcelProperty(value = "需要修改的内容")
    private String requiredModifications;

    /**
     * 是否自动审核：0-人工，1-自动
     */
    @ExcelProperty(value = "是否自动审核：0-人工，1-自动", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "auto_review")
    private Integer autoReview;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;


}
